﻿using System;
using System.Data;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;
using KPIS.DBM;
using KPIS.GERP.GBMS.DAL;
using KPIS.GERP.GBMS.MODEL;
using KPIS.GERP.GBMS.DALFactory;
using KPIS.GERP.GBMS.IBLL;

namespace KPIS.GERP.GBMS.BLL
{
    public class ProjectJobAssigneeListBLL : IProjectJobAssigneeListBLL
    { 
        private static readonly IProjectJobAssigneeListDAL dal = DataAccess.CreateProjectJobAssigneeList();

        public void Insert(string strProJobAssignee, string strEmpSeq, string strRemark)
        {
            dal.Insert(strProJobAssignee, strEmpSeq, strRemark);
        }

        public DataTable LoadEmployeeList(string strProJobAssignee, string strEmpSeq, string strJobSite, string strPosName)
        {
            return dal.LoadEmployeeList(strProJobAssignee, strEmpSeq, strJobSite, strPosName);
        }

        public DataTable Search(string strProjJobAssigneeSeq, string strProjJobAssignSeq, string strEmpSeq, string strRemark)
        {
            return dal.Search(strProjJobAssigneeSeq, strProjJobAssignSeq, strEmpSeq, strRemark);
        }

        public void Update(string strProJobAssignee, string strEmpSeq, string strRemark)
        {
            dal.Update(strProJobAssignee, strEmpSeq, strRemark);
        }

        public void Delete(string strProjJobAssigneeSeq)
        {
            dal.Delete(strProjJobAssigneeSeq);
        }

        public bool CheckDuplicateCode(string strEmpSeq, string strProjJobAssignSeq)
        {
            return dal.CheckDuplicateCode(strEmpSeq, strProjJobAssignSeq);
        }
    }
}